<%-- 
    Document   : customer
    Created on : Mar 13, 2013, 10:39:04 AM
    Author     : dizonfarleyjr
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page import="java.io.*,java.util.*" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="styles/style.css" rel="stylesheet" type="text/css" media="all"/>
        <!-- JS -->
	<script src="script/jquery-1.4.1.min.js" type="text/javascript"></script>	
	<script src="script/jquery.jcarousel.pack.js" type="text/javascript"></script>	
	<script src="script/jquery-func.js" type="text/javascript"></script>	
	<!-- End JS -->
        <title>FooBar Shop!</title>
    </head>
    <body>
     <% if(session.getAttribute("loggedName") == null) 
        response.sendRedirect("index.jsp");    
           else if("Administrator".equals(session.getAttribute("loggedUserType")))
               response.sendRedirect("admin.jsp");
           else if("Product Manager - Book".equals(session.getAttribute("loggedUserType")))
               response.sendRedirect("bookProductManager.jsp");
           else if("Product Manager - AudioCD".equals(session.getAttribute("loggedUserType")))
               response.sendRedirect("audioCDProductManager.jsp");
           else if("Product Manager - Magazine".equals(session.getAttribute("loggedUserType")))
               response.sendRedirect("magazineProductManager.jsp");
           else if("Product Manager - DVD".equals(session.getAttribute("loggedUserType")))
               response.sendRedirect("dvdProductManager.jsp");
           else if("Accounting Manager".equals(session.getAttribute("loggedUserType")))
               response.sendRedirect("AccountingManager.jsp");
%>
     <!-- Start Shell -->
      <div class="shell">
	<!-- Header -->	
	<div id="header">
		<h1 id="logo"><a href="loggedin.jsp">ALDIGOY</a></h1>	
		
                <!-- Cart -->
		<div id="cart">
			<a href="#" class="cart-link">Your Shopping Cart</a>
			<div class="cl">&nbsp;</div>
			<span>Welcome, <%= session.getAttribute("loggedName") %>!</span>
			&nbsp;&nbsp;	
		</div>
		<!-- End Cart -->
		
		<!-- Navigation -->
		<div id="navigation">
			<ul>
			    <li><a href="loggedin.jsp">Home</a></li>
			    <li><a href="viewUserServlet">My Account</a></li>
			    <li><a href="logoutServlet">Logout</a></li>
			    <li><a href="#">About Us</a></li>
			    
			</ul>
		</div>
		<!-- End Navigation -->
	</div>
	<!-- End Header -->
	
	<!-- Main -->
	<div id="main">
		<div class="cl">&nbsp;</div>
		
		<!-- Content -->
		<div id="content">
			
                    
                    <table>
                        <tr>
                            <td>You have successfully logged in, click <a href="loggedin.jsp">here</a> to go back.</td>
                        </tr>
                        
                    </table>
                    </form>
                    
        
		
			
		</div>
		<!-- End Content -->
		
		<!-- Sidebar -->
		<div id="sidebar">
			
			<!-- Search -->
			<div class="box search">
				<h2>Search by <span></span></h2>
				<div class="box-content">
					<form action="searchProductServlet" method="post">
						
						<label>Keyword</label>
						<input type="text" class="field" name="searchKeyword" />
						
						<label>Category</label>
						<select class="field" name="searchCategory">
							<option value="All Categories">All Categories</option>
                                                        <option value="book">Books</option>
                                                        <option value="magazine">Magazines</option>
                                                        <option value="audioCD">Audio CD</option>
                                                        <option value="dvd">DVD</option>
						</select>
						
						
						<input type="submit" class="search-submit" value="Search" />
						
						<p>
							<a href="#" class="bul">Advanced search</a><br />
							<a href="#" class="bul">Contact Customer Support</a>
						</p>
	
					</form>
				</div>
			</div>
			<!-- End Search -->
			
			<!-- Categories -->
			<div class="box categories">
				<h2>Categories <span></span></h2>
				<div class="box-content">
					<ul>
					    <li><a href="viewCategoryServlet?productCategory=book">Books</a></li>
					    <li><a href="viewCategoryServlet?productCategory=magazine">Magazines</a></li>
					    <li><a href="viewCategoryServlet?productCategory=audioCD">Audio CD</a></li>
					    <li><a href="viewCategoryServlet?productCategory=dvd">DVD</a></li>
                                            <li class="last"><a href="viewCategoryServlet?productCategory=all">View All Products</a></li>
					</ul>
				</div>
			</div>
			<!-- End Categories -->
			
		</div>
		<!-- End Sidebar -->
		
		<div class="cl">&nbsp;</div>
	</div>
	<!-- End Main -->
	
	<!-- Side Full -->
	<div class="side-full">
		
		<!-- More Products -->
		<div class="more-products">
			<div class="more-products-holder">
				<ul>
				    <li><a href="#"><img src="styles/images/prod1.jpg" alt="" /></a></li>
				    <li><a href="#"><img src="styles/images/prod2.jpg" alt="" /></a></li>
				    <li><a href="#"><img src="styles/images/prod3.jpg" alt="" /></a></li>
				    <li><a href="#"><img src="styles/images/prod4.jpg" alt="" /></a></li>
				    <li><a href="#"><img src="styles/images/prod5.jpg" alt="" /></a></li>
				    <li><a href="#"><img src="styles/images/prod6.jpg" alt="" /></a></li>
                                    <li><a href="#"><img src="styles/images/prod8.jpg" alt="" /></a></li>
				    <li><a href="#"><img src="styles/images/prod9.jpg" alt="" /></a></li>
				    <li><a href="#"><img src="styles/images/prod10.jpg" alt="" /></a></li>
				    <li><a href="#"><img src="styles/images/prod11.jpg" alt="" /></a></li>
				    <li class="last"><a href="#"><img src="styles/images/prod7.jpg" alt="" /></a></li>
				</ul>
			</div>
			<div class="more-nav">
				<a href="#" class="prev">previous</a>
				<a href="#" class="next">next</a>
			</div>
		</div>
		<!-- End More Products -->
		
		<!-- Text Cols -->
		<div class="cols">
			<div class="cl">&nbsp;</div>
			<div class="col">
				<h3 class="ico ico1">Fast Delivery</h3>
				<p>We offer one of the fastest delivery services in the whole world.</p>
				<p class="more"><a href="#" class="bul">Learn more</a></p>
			</div>
			<div class="col">
				<h3 class="ico ico2">Customer Service</h3>
				<p>Inquire and learn more about products by talking with our friendly staff.</p>
				<p class="more"><a href="#" class="bul">Learn more</a></p>
			</div>
			<div class="col">
				<h3 class="ico ico3">Gift Service</h3>
				<p>Browsing for a gift? Look no further, we offer one of the safest and most incredible services out there.</p>
				<p class="more"><a href="#" class="bul">Learn more</a></p>
			</div>
			<div class="col col-last">
				<h3 class="ico ico4">Shopping Cart</h3>
				<p>Got everything that you're looking for? Checkout your shopping cart now!.</p>
				<p class="more"><a href="#" class="bul">Finish Shopping</a></p>
			</div>
			<div class="cl">&nbsp;</div>
		</div>
		<!-- End Text Cols -->
		
	</div>
	<!-- End Side Full -->
	
	<!-- Footer -->
	<div id="footer">
		<p class="left">
			<a href="#">Home</a>
			<span>|</span>
			<a href="#">Register</a>
			<span>|</span>
			<a href="#">Login</a>
			<span>|</span>
			<a href="#">About Us</a>
			<span>|</span>
			
		</p>
		<p class="right">
			&copy; 2013 FooBar Shop.
			
		</p>
	</div>
	<!-- End Footer -->
	
</div>	
<!-- End Shell -->
      
      
      
      
    </body>
</html>
